import instance from '@/utils/request'

// 获取-权限点列表
export function getPermissionListApi() {
  return instance.get('/sys/permission')
}

// 新增-权限点
export function addPermissionApi(data) {
  return instance.post('/sys/permission', data)
}

// 获取-权限点详情
export function getPermissionDetailApi(id) {
  return instance.get(`/sys/permission/${id}`)
}

// 修改-权限点详情
export function updatePermissionApi(data) {
  return instance.put(`/sys/permission/${data.id}`, data)
}

// 删除-权限点
export function deletePermissionApi(id) {
  return instance.delete(`/sys/permission/${id}`)
}
